FROM openjdk:8-jdk-alpine
RUN echo -e http://mirrors.ustc.edu.cn/alpine/v3.7/main/ > /etc/apk/repositories
ARG version
RUN apk update && apk upgrade && apk add ca-certificates && update-ca-certificates \
    && apk add --update tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && rm -rf /var/cache/apk/*
ENV TZ=Asia/Shanghai
ADD target/ucs-gateway.jar ucs-gateway.jar
ENTRYPOINT java -Xms512m -Xmx1027m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006 -jar /ucs-gateway.jar
